Stochastic Newton Sampler: The R Package sns
نویسندگان
چکیده
The R package sns implements Stochastic Newton Sampler (SNS), a Metropolis-Hastings Monte Carlo Markov Chain algorithm where the proposal density function is a multivariate Gaussian based on a local, second-order Taylor-series expansion of log-density. The mean of the proposal function is the full Newton step in Newton-Raphson optimization algorithm. Taking advantage of the local, multivariate geometry captured in log-density Hessian allows SNS to be more efficient than univariate samplers, approaching independent sampling as the density function increasingly resembles a multivariate Gaussian. SNS requires the log-density Hessian to be negative-definite everywhere in order to construct a valid proposal function. This property holds, or can be easily checked, for many GLMlike models. When initial point is far from density peak, running SNS in non-stochastic mode by taking the Newton step augmented with line search allows the MCMC chain to converge to high-density areas faster. For high-dimensional problems, partitioning of state space into lower-dimensional subsets, and applying SNS to the subsets within a Gibbs sampling framework can significantly improve the mixing of SNS chains. In addition to the above strategies for improving convergence and mixing, sns offers utilities for diagnostics and visualization, sample-based calculation of Bayesian predictive posterior distributions, numerical differentiation, and log-density validation.
منابع مشابه
Manual to accompany MATLAB package for Bayesian VAR models
2 VAR models 4 2.1 Analytical results for VAR models . . . . . . . . . . . . . . . . . . . . 4 2.1.1 The Diffuse Prior . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.2 The Natural Conjugate Prior . . . . . . . . . . . . . . . . . . . 5 2.1.3 The Minnesota Prior . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 Estimation of VARs using the Gibbs sampler . . . . . . . . . . . . . 6...
متن کاملMultivariate-from-Univariate MCMC Sampler: The R Package MfUSampler
The R package MfUSampler provides Monte Carlo Markov Chain machinery for generating samples from multivariate probability distributions using univariate sampling algorithms such as slice sampler and adaptive rejection sampler. The multivariate wrapper performs a full cycle of univariate sampling steps, one coordinate at a time. In each step, the latest sample values obtained for other coordinat...
متن کاملDiscovering and developing primary biodiversity data from social networking sites: A novel approach
An ever-increasing need exists for fine-scale biodiversity occurrence records for a broad variety of research applications in biodiversity and science more generally. Even though large-scale data aggregators like GBIF serve such data in large quantities, major gaps and biases still exist, both in taxonomic coverage and in spatial coverage. To address these gaps, in this dissertation, I explored...
متن کاملRapid Mixing Swendsen-Wang Sampler for Stochastic Partitioned Attractive Models
The Gibbs sampler is a particularly popular Markov chain used for learning and inference problems in Graphical Models (GMs). These tasks are computationally intractable in general, and the Gibbs sampler often suffers from slow mixing. In this paper, we study the SwendsenWang dynamics which is a more sophisticated Markov chain designed to overcome bottlenecks that impede the Gibbs sampler. We pr...
متن کاملStochastic Petri Net-based performance evaluation of hybrid traffic for social networks system
A social network is a social structure made up of a set of social actors (such as individuals or organizations) and a set of the dyadic ties between these actors. By contrast, for the fixed time duration the size of digital video would be much bigger than that of digital sound. Consequently, providers of social network services can offer real-time chatting among users which could offer satisfac...
متن کامل